﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<brjostagjof.Models.SpecialistUser>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Fagaðilar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%string kyn = null;
    if (Model.User.gender.Value) 
    {
        kyn = "Karlkyn";
    }
    else
    {
        kyn ="Kvenkyn";
    }
    %>
    <h2><%:Model.User.name %></h2>
    <p>
    </p>
    <div id="specialistInfo">
        <p><b>Aldur: </b> <%:Model.User.age %></p>
        <p><b>Kyn: </b> <%:kyn %></p>
        <p><b>Email: </b> <%:Model.User.email %></p>
        <p><b>Um mig: </b> <%:Model.User.description%></p>
        
    </div>
    <a  id="synaMinarUpp" style=" cursor:pointer;">Mínar upplýsingar</a><div>
  <table id="minarUpp">
  <tbody>
  <tr>
     <td><img class="thumbnail2"src="/../../images/<%= Model.pic.url %>" alt="schoolbook" /><ul>
     <%if (Model.User.name != null)
       { %>
        <li><b>Nafn:</b>&nbsp;<%:Model.User.name  %></li>
     <%} %>
     <%if (Model.User.email != null)
       { %>
        <li><b>Netfang:</b>&nbsp;<%:Model.User.email  %></li>
     <%} %>
     <%if (Model.User.age != null)
       { %>
        <li><b>Aldur:</b>&nbsp;<%: Model.User.age %></li>
     <%} %>
     <%if (Model.User.gender != null && Model.User.gender== true)
       { %>
        <li><b>Kyn:</b> Karlkyns</li>
        <%} %>
     <%if (Model.User.gender != null && Model.User.gender== false)
       { %>
             <li><b>Kyn:</b> Kvenkyns</li>
     <%} %>
     <%if (Model.User.address != null)
       { %>
            <li><b>Heimilsfang:</b>&nbsp;<%: Model.User.address  %></li>
     <%} %>
     <%if (Model.User.zipCode != null)
       { %>
            <li><b>Póstnúmer:</b>&nbsp;<%:Model.User.zipCode  %></li>
     <%} %>
        <%if (Model.User.description != null)
       { %>
            <li><b>Um mig:</b></li>
            <li><%:Model.User.description%></li>
     <%} %>
     </ul>
     </td>
     </tr>
     </tbody>
     </table>
     </div>

     

</asp:Content>

